package cn.anzhiyublog.staranimegallery.annotation;

import cn.anzhiyublog.staranimegallery.model.enums.Authority;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限控制注解，使用在控制层的方法上
 *
 * @author 安知一只鱼
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Auth {
    Authority[] value() default {};
}
